﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ObTookit.HighLight
{
    public class DocHighLight : BaseHighLight
    {
        private void SetWords()
        {
            DefaultColor = Color.Black;
            Keywords = new string[] { };
            KeywordColor = Color.Blue;

            Functions = new string[] { };
            FunctionColor = Color.Red;
        }
        public void SetWordsColor(System.Windows.Forms.RichTextBox rtb, string rtbText)
        {
            SetWords();
            SetWords();
            rtb.SelectAll();
            rtb.SelectionColor = Color.Black;
            string text = rtb.Text;
            SetHighLight(rtb, text, Keywords, KeywordColor);
            SetHighLight(rtb, text, Functions, FunctionColor);
        }
    }
}
